package com.oscar.ehome.utils.selfdialog;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.RelativeLayout;

import com.oscar.ehome.R;


/**
 * 修改资料提示框
 * @author mengwanhe
 *
 */
public class CustomBackDialog extends Dialog {

	public RelativeLayout cancle_comback;
	public RelativeLayout ok_comback;
	
	public CustomBackDialog(Context context) {
		super(context,R.style.CustomDialog);
		// TODO Auto-generated constructor stub
		setCustomDialog();
	}

	private void setCustomDialog() {
		View mView = LayoutInflater.from(getContext()).inflate(R.layout.customback_dialogi, null);
		cancle_comback = (RelativeLayout) mView.findViewById(R.id.cancle_comback);
		ok_comback = (RelativeLayout) mView.findViewById(R.id.ok_comback);
		super.setContentView(mView);
	}
	
	
	 @Override
	public void setContentView(int layoutResID) {
	}

	@Override
	public void setContentView(View view, LayoutParams params) {
	}

	@Override
	public void setContentView(View view) {
	}

	/** 
     * 确定键监听器 
     * @param listener 
     */  
    public void setOnPositiveListener(View.OnClickListener listener){
    	ok_comback.setOnClickListener(listener);  
    }  
    /** 
     * 取消键监听器 
     * @param listener 
     */  
    public void setOnNegativeListener(View.OnClickListener listener){
    	cancle_comback.setOnClickListener(listener);  
    }

}
